﻿using System;
using System.Globalization;
using System.Windows.Data;
using System.Windows.Media;

namespace SafeLoad.NControl.Converter
{
  public class ValvesStateColorConverter : IValueConverter
  {
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
      bool state = System.Convert.ToBoolean(value);
      //return state ? Color.FromRgb(0x5B, 0x8B, 0x00) : Color.FromRgb(0x97, 0x97, 0x97);
      return Colors.Green;
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
      throw new NotImplementedException();
    }
  }
}
